package com.yc.sole.financial.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.*;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author yizuomin
 * @date 2024/1/23 14:51
 **/
@Data
@Entity
@Table(name = "financial_piece_rate_wage_detail")
@TableName("financial_piece_rate_wage_detail")
public class PieceRateWageDetail {

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 组id
     */
    @Column(columnDefinition = "BIGINT NOT NULL COMMENT '组id'")
    private Long groupId;
    /**
     * 日期
     */
    @Column(columnDefinition = "VARCHAR(10) NOT NULL COMMENT '日期'")
    private String date;
    /**
     * 班次id
     */
    @Column(columnDefinition = "BIGINT NOT NULL COMMENT '班次id'")
    private Long shiftId;
    /**
     * 员工id
     */
    @Column(columnDefinition = "BIGINT NOT NULL COMMENT '员工id'")
    private Long employeeId;
    /**
     * 工序id
     */
    @Column(columnDefinition = "BIGINT NOT NULL COMMENT '工序id'")
    private Long processId;
    /**
     * 产量
     */
    @Column(columnDefinition = "INTEGER NOT NULL COMMENT '产量'")
    private Integer quantity;
    /**
     * 计件工资
     */
    @Column(columnDefinition = "DECIMAL(18,2) NOT NULL COMMENT '计件工资'")
    private BigDecimal pieceRateWage;
    /**
     * 补贴
     */
    @Column(columnDefinition = "DECIMAL(18,2) NOT NULL COMMENT '补贴'")
    private BigDecimal subsidy;
}
